package com.qboot.common.controller;

import com.qboot.common.entity.Result;
import com.qboot.common.utils.AssertUtils;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Tellsea
 * @date 2023/2/3
 */
@Api(tags = "测试事物")
@RestController
@RequestMapping("/common/testException")
public class TestExceptionController {

    @GetMapping("/test")
    public Result test() {
        AssertUtils.isTrue(true, "抛出异常");
        return Result.ok("success");
    }
}
